package com.lzj.jiangxindaojia;

import android.app.Application;

import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;
import com.umeng.socialize.common.QueuedWork;

/**
 * Created by lizj on 2017/12/18.
 */

public class MyApplication extends Application{

    @Override
    public void onCreate() {
        super.onCreate();
        //开启debug模式，方便定位错误，具体错误检查方式可以查看http://dev.umeng.com/social/android/quick-integration的报错必看，正式发布，请关闭该模式
        Config.DEBUG = true;
        QueuedWork.isUseThreadPool = false;
        UMShareAPI.get(this);
    }

    //各个平台的配置，建议放在全局Application或者程序入口
    {
        PlatformConfig.setWeixin("wxb38bec145769dd73", "3ea91ea539e721ce37833bc399c3b607");
        PlatformConfig.setQQZone("1105878767", "VX4U39s3lykznA3S");
        PlatformConfig.setSinaWeibo("3324230985","618faca2f29f6f09c8a3fddfac6debff","http://sns.whalecloud.com/sina2/callback");
    }
}
